<?php 
/*
 * Author: ZhengXing
 * Data: 2010-6-12
 * Usage: Database connection management
 */

	require_once(dirname(__FILE__).'/config.php');
	require_once(dirname(__FILE__).'/db/dbal.php');	
	require_once(dirname(__FILE__).'/db/'.$dbms.'.php');
	
	$db	= new $sql_db();
	$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, false);
	unset($dbpasswd);
	
	/*if(isset($db))
		echo $db;
	else echo 'no';	*/
?>